package edu.uoc.tfc.web.tags;



import javax.servlet.http.HttpServletRequest;

import org.apache.struts.action.ActionForm;
import org.apache.struts.config.ActionConfig;



public class StrutsFormBeanParser extends BaseFormBeanParser
{



	public StrutsFormBeanParser(){}



	@Override
	public Object parseFormBean(HttpServletRequest request)
	{
		ActionConfig actionInstance = (ActionConfig)
			request.getAttribute("org.apache.struts.action.mapping.instance");

		ActionForm formBean = (ActionForm)
			request.getAttribute(actionInstance.getName());

		return formBean;
	}



}
